package staticproxy.proxy;

import staticproxy.service.PerSonService;

/**
 * @Author liangbaigao
 * @Date 2023/9/29 8:38
 */
public class PersonProxy implements PerSonService {

    private PerSonService service;

    public PersonProxy(PerSonService perSonService) {
        this.service = perSonService;
    }

    @Override
    public void speak() {
        System.out.println("业务增强前操作");
        service.speak();
        System.out.println("业务后操作");
    }
}
